package com.ktjy.mapper;

import com.ktjy.pojo.StorageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author lihanzhui
 * @version 1.0
 * @date 2025/6/4 上午9:02
 */
public interface StorageRecordMapper {
    //第三，第四章上机
    List<StorageRecord> getStorageRecordList(@Param("goodsName") String goodsName, @Param("supplierId") int supplierId, @Param("payStatus") int payStatus);
    List<StorageRecord> getStorageRecordByIdArray(Integer[] supplierIds);
    List<StorageRecord> getStorageRecordByIdList(List<Integer> supplierIds);
    List<StorageRecord> getStorageRecordBySupplierIdMap(Map<String, Object> supplierMap);
    List<StorageRecord> selectPageList(@Param("pageNo")Integer pageNo, @Param("pageSize")Integer pageSize);
    //第五章5查询入库单
    List<StorageRecord> getStorageRecordByList(@Param("goodsName") String goodsName, @Param("supplierId") Integer supplierId, @Param("payStatus") int payStatus,@Param("pageNo")Integer pageNo, @Param("pageSize")Integer pageSize);
    //新增入库单
    int addStorageRecord(StorageRecord record);
    //修改入库单
    int updateStorageRecord(StorageRecord record);
    //查看入库明细
    StorageRecord selectStorageRecordById(Integer id);
    //删除入库单
    int deleteStorageRecordById(Integer id);
}
